Skip to content

SAK-51264 Calendar fix date errors and datepicker errors #13555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

ottenhoff
Copy link
Contributor

Resolve 'Declaration or statement expected' error in lang-datepicker.js caused by incorrect nesting of date string format parsing logic within the DateHelper.normalize method. The conditional blocks for handling YYYY-MM-DD format and the native Date parsing fallback were incorrectly nested inside the block checking for the ISO 'T' format.

Copy link

@accesslint accesslint bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are accessibility issues in these changes.

Resolve 'Declaration or statement expected' error in lang-datepicker.js caused by incorrect nesting of date string format parsing logic within the DateHelper.normalize method. The conditional blocks for handling YYYY-MM-DD format and the native Date parsing fallback were incorrectly nested inside the block checking for the ISO 'T' format. This commit adjusts the block structure to ensure all string parsing attempts occur sequentially within the main string type check, resolving the syntax error.
@ottenhoff ottenhoff merged commit 173adce into sakaiproject:master Apr 8, 2025
5 checks passed
ern pushed a commit that referenced this pull request Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants